From: Jonas Ã…dahl Date: Wed, 22 Jul 2020 16:22:38 +0000 (+0200) Subject: dbusService: Queue shutdown check on startup X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~684^2^2~82 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=73436b52768c3e34164880901555187ff647432f;p=gnome-shell.git dbusService: Queue shutdown check on startup If something started the service, but crashed before managing to make a method call, we'd end up with the service running indefinitely. Fix this by queueing a shutdown check immediately on startup. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1372 --- diff --git a/js/dbusServices/dbusService.js b/js/dbusServices/dbusService.js index 93873e287..71b1e35d7 100644 --- a/js/dbusServices/dbusService.js +++ b/js/dbusServices/dbusService.js @@ -25,6 +25,8 @@ var ServiceImplementation = class { // subclasses may override this to disable automatic shutdown this._autoShutdown = true; + + this._queueShutdownCheck(); } // subclasses may override this to own additional names